<!DOCTYPE html>
<html>
<#include "../../include/PC_Header.html"> 
<body>
<#assign nid="account_home" > 
<#include "../../include/member_guarantee_header.html">
<!--header-end-->
<!--用户中心的主栏目 开始-->
 <div id="container">
<div class="usermain clearfix">
	<!--右边的内容 开始-->
	<div class="user_right_guaranteeList">
		<div class="user_title">头像修改</div>
		<div class="face_conts">
			<embed tplayername="SWF" splayername="SWF"
				type="application/x-shockwave-flash"
				src="/plugins/uploadportrait/face.swf" mediawrapchecked="true"
				pluginspage="http://www.macromedia.com/go/getflashplayer"
				id="tagcloudflash" name="tagcloudflash" bgcolor="#ffffff"
				quality="high" wmode="transparent" allowscriptaccess="always"
				FlashVars="uploadServerUrl=/upfile.jsp?userId=${(session_user.userId)?c}&defaultImg=/imgurl.html?userId=${(session_user.userId)?c}&size=big"
				width="500" height="500" />
		</div>
        
	</div>
</div>
	<!--右边的内容 结束-->
</div>
</div>
<!--用户中心的主栏目 结束-->
<script>seajs.use("jquery");</script>
<script>seajs.use("/plugins/layer-v1.8.4/skin/layer.css");</script>
<script>seajs.use("/plugins/layer-v1.8.4/layer.min");</script>
<script> 
function avatar_success(){
	 $.layer({
		    type: 1,
		    closeBtn: [0,true],
         	title: "&nbsp;",
		    area: ['384px', '186px'],
		    border: [1, 1, '#cecfd0'],
		    time:3,
		    page: {
		        html: '<div class="tipsWrap w384"><div class="tipsTxt"><i class="iconfont okIco">&#xe63d;</i><span>头像修改成功</span></div><div class="tipsMsg"><i class="tipsTime">3</i>秒后窗口自动关闭</div></div>'
		    },
		    close: function(index){
		    	window.location.reload();
		    },
		    end: function(){
		    	window.location.reload();
		    },
		    success:function(){
                var time = 3;
                function tipsTime(){
                 time--;
                 $(".tipsTime").html(time)
                 if(time == 0)
                 {
                  clearInterval(timeCount)
                 }
                }
                var timeCount = setInterval(function(){tipsTime()},1000);
               }
	});
}
</script>
<#include "../../include/footer.html"> 
</body>
</html>
